<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/student-manage/Public/css/bg.css" rel="stylesheet">
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="/student-manage/Public/js/admin/index/index.js"></script>
    <link href="/Public/css/bootstrap.min.css">
    <link href="/student-manage/Public/css/admin/index/index.css" rel="stylesheet">
    <title>后台管理</title>
</head>
<body>
<div class="container" style="margin-left: 0; margin-right: 0; margin-top: 5%; width: 95%">
    <div class="row row-fluid">
        <div class="col-md-3">
            <ul class="list-group" id="listGroup">
                <li class="list-group-item active" id="list1" onclick="getTpl(1)">用户信息</li>
                <li class="list-group-item" id="list2" onclick="getTpl(2)">查找学生信息</li>
                <li class="list-group-item" id="list3" onclick="getTpl(3)">增加学生信息</li>
            </ul>
        </div>
        <div class="col-md-9 shelve">
            <div class="div-in-center" id="frame"></div>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/template" id="insertStudentInfo_Tpl">
    <ol class="breadcrumb">
        <li class="active">Admin</li>
        <li class="active">添加学生信息</li>
    </ol>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
                学生信息
            </h3>
        </div>
        <div class="panel-body">
            <form id="insertForm" role="form">
                <table border="0">
                    <tr>
                        <td>
                            <div class="table-cell-width">
                                <label for="studentname">学生姓名</label>
                                <input type="text" class="form-control" id="studentname" name="studentname">
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label for="studentid">学生学号</label>
                                <input type="text" class="form-control" id="studentid" name="studentid">
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label for="borndate">出生日期</label>
                                <input type="date" class="form-control" id="borndate" name="borndate">
                            </div>
                        </td>
                        <td>
                            <label for="sex">性别</label>
                            <label class="checkbox-inline">
                                <input type="radio" class="form-control" id="sex1" value="boy" name="sex">男
                            </label>
                            <label class="checkbox-inline">
                                <input type="radio" class="form-control" id="sex2" value="girl" name="sex">女
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-cell-width">
                                <label for="college">学院</label>
                                <select class="form-control" name="college" id="college">
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label for="specialty">专业</label>
                                <select class="form-control" name="specialty" id="specialty">
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label for="studenclass">班级</label>
                                <input type="text" class="form-control" id="studenclass" name="studentclass">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-cell-width">
                                <label>政治面貌</label>
                                <select class="form-control" name="politics" id="politics">
                                    <option value="1">共青团员</option>
                                    <option value="2">共产党员</option>
                                    <option value="3">群众</option>
                                    <option value="4">其他</option>
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label>民族</label>
                                <select class="form-control" name="minority" id="minority">
                                    <option value="1">汉</option>
                                    <option value="2">少数民族</option>
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-cell-width">
                                <label for="studenttel">电话/手机</label>
                                <input type="text" class="form-control" id="studenttel" name="studenttel">
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label for="studentemail">邮箱</label>
                                <input type="text" class="form-control" id="studentemail" name="studentemail">
                            </div>
                        </td>
                        <td>
                            <div class="table-cell-width">
                                <label for="studentlocation">家庭住址</label>
                                <input type="text" class="form-control" id="studentlocation" name="studentlocation">
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
            <br/>
            <a class="btn btn-primary" id="addInfoButton">提交</a>
        </div>
    </div>
</script>
<script type="text/html" id="findStudentInfo_Tpl">
    <ol class="breadcrumb">
        <li class="active">Admin</li>
        <li class="active">查找学生信息</li>
    </ol>
    <form class="form-inline" role="form">
        <div class="form-group">
            <label class="sr-only" for="sid">学号</label>
            <input type="text" class="form-control" id="sid" placeholder="请输入学号">
        </div>
        <a class="btn btn-default" id="findInfoButton" onclick="findStudent(0)">提交</a>
    </form>
    <br/>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
                查询结果
            </h3>
        </div>
        <div class="panel-body">
            <table class="table" id="table">
                <tbody>
                <tr>
                    <td>学号:</td>
                    <td>姓名:</td>
                    <td>操作:</td>
                </tr>
                </tbody>
            </table>
        </div>
        <ul class="pagination" id="pagination">
        </ul>
    </div>
</script>
<script type="text/html" id="index_Tpl">
欢迎你，管理员！
</script>